package com.tj.mapper;

import com.tj.pojo.Dish;
import com.tj.pojo.Setmeal;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author t
* @description 针对表【setmeal(套餐)】的数据库操作Mapper
* @createDate 2023-04-25 21:48:54
* @Entity com.tj.pojo.Setmeal
*/
@Mapper
public interface SetmealMapper {

    @Select("select * from setmeal where category_id=#{id}")
    public Setmeal getByCategoryId(Long id);

    @Select("select * from setmeal where category_id=#{category}")
    public List<Setmeal> getByCategory(Long category);
}




